package com.JobFind.DTO;

import com.JobFind.model.TbDeliver;
import com.JobFind.model.TbRecruitment;
import com.JobFind.model.TbResume;
import com.JobFind.model.TbUser;

public class DeliverDTO implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	private Integer deliverId;
	private Integer recruitmentId;
	private Integer resumeId;
	private Integer userId;
	private Integer deliverStatus;
	
	public Integer getDeliverId() {
		return deliverId;
	}
	public void setDeliverId(Integer deliverId) {
		this.deliverId = deliverId;
	}
	public Integer getRecruitmentId() {
		return recruitmentId;
	}
	public void setRecruitmentId(Integer recruitmentId) {
		this.recruitmentId = recruitmentId;
	}
	public Integer getResumeId() {
		return resumeId;
	}
	public void setResumeCopyId(Integer resumeId) {
		this.resumeId = resumeId;
	}
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	
	
	public Integer getDeliverStatus() {
		return deliverStatus;
	}
	public void setDeliverStatus(Integer deliverStatus) {
		this.deliverStatus = deliverStatus;
	}
	public TbDeliver toDAO(){
		TbDeliver deliverBean = new TbDeliver();
		TbRecruitment recruitmentBean = new TbRecruitment();
		TbResume resumeBean = new TbResume();
		TbUser userBean = new TbUser();
		recruitmentBean.setRecruitmentId(this.getRecruitmentId());
		resumeBean.setResumeId(this.getResumeId());
		userBean.setUserId(this.getUserId());
		deliverBean.setDeliverId(this.getDeliverId());
		deliverBean.setDeliverStatus(this.getDeliverStatus());
		deliverBean.setTbRecruitment(recruitmentBean);
		deliverBean.setTbUser(userBean);
		deliverBean.setTbResume(resumeBean);
		return deliverBean;
	}
}
